package com.jsu.clubmanagementsystem.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jsu.clubmanagementsystem.model.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 24753
* @description 针对表【user(用户)】的数据库操作Mapper
* @createDate 2025-05-13 17:29:48
* @Entity com.jsu.clubmanagementsystem.model.entity.User
*/
public interface UserMapper extends BaseMapper<User> {

    @Select("select userName from user where id=#{userId}")
    String getClubManagerName(Long userId);

    @Select("select * from user ${ew.customSqlSegment}")
    List<User> selectLists(Page<User> page, @Param("ew") QueryWrapper queryWrapper);

}




